<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="NHibernateLibrary.Entities" assembly="NHibernateLibrary">

  <class name="Address" table="ADDRESS">

    <composite-id>
     <!--<key-property name="UserID" column="USERID" type="Int64">
       --><!--<column name="UserID" sql-type="int" not-null="true" />--><!--
     </key-property>-->
      <key-property name="Id" column="Id" type="Int64">
        <column name="Id" unique="true" not-null="true"/>
      </key-property>
      <key-many-to-one name="UserId" class="ProfileUser" column="UserId" />
      <key-property name="Street" column="STREET" type="String" length="200" ></key-property>
      <key-property name="City" column="CITY" type="String" length="100" ></key-property>
      <key-property name="Country" column="COUNTRY" type="String" length="100" ></key-property>
    </composite-id>
    <!--<many-to-one name="UserID" class="ProfileUser" column="Id" />-->
    
  </class>

</hibernate-mapping>